package com.su.lightthings.entity

//import io.objectbox.annotation.Backlink
//import io.objectbox.annotation.Entity
//import io.objectbox.annotation.Id
//import io.objectbox.annotation.Index
//import io.objectbox.relation.ToMany

/**
 * 数据库中 连接设备历史
 */
//@Entity
data class ConnectedDeviceEntity(
//    @Id
//    var id: Long = 0,
//    @Index
//    var address: String = "",
//    var name: String = "",
//    var lastConnectTimeStamp: Long = 0L,
//    @Transient
//    var content1: String = "",
//    @Transient
    var content2: String = "",
) {

//    @Backlink
//    /*(to = "ConnectedDeviceEntity")*/
//    lateinit var common: ToMany<CommonDataEntity>
//
//    @Backlink
//    /*(to = "ConnectedDeviceEntity")*/
//    lateinit var realTime: ToMany<RealTimeDataEntity>
//
//    @Backlink
//    /*(to = "ConnectedDeviceEntity")*/
//    lateinit var sport: ToMany<SportDataEntity>
}